package  gearunits.models{
	import away3d.core.base.Face;
	import away3d.core.base.Mesh;
	import away3d.core.base.UV;
	import away3d.core.base.Vertex;
	import away3d.core.utils.Init;

	public class AMeshStoreshopPants extends Mesh {
		private var ve:Array;
		private var fa:Array;

		public function AMeshStoreshopPants(init:Object = null) {
			super( init );
			init = Init.parse(init);
			ve = [];
			v(0.460003,31.459999,3.146002);
			v(0.460003,18.539997,3.146000);
			v(-31.460009,18.540005,3.146000);
			v(-31.459988,31.460014,3.146002);
			v(0.460018,31.459988,-3.146000);
			v(0.459984,18.539978,-3.146000);
			v(-31.460014,18.540012,-3.146000);
			v(-31.459997,31.460003,-3.146000);
			v(31.459984,18.539970,-3.146009);
			v(31.460018,31.459980,-3.146009);
			v(31.460003,18.539989,3.145991);
			v(31.460003,31.459991,3.145993);
			v(41.459991,-21.460007,3.146112);
			v(41.459976,-21.460030,-3.145888);
			v(10.459974,-21.460022,-3.145879);
			v(10.459993,-21.460007,3.146121);
			v(-41.460041,-21.459991,-3.145963);
			v(-9.540043,-21.460022,-3.145963);
			v(-41.460037,-21.459991,3.146036);
			v(-9.540024,-21.460007,3.146036);

			f(19,17,18,0.536429,0.934120,0.485249,0.934277,0.535632,0.674479,-0.000000,0.000002,-1.000000);
			f(17,16,18,0.485249,0.934277,0.484453,0.674636,0.535632,0.674479,-0.000001,0.000000,-1.000000);
			f(2,1,19,0.325613,0.080343,0.326410,0.339983,0.000796,0.259640,0.000000,1.000000,0.000001);
			f(2,19,18,0.325613,0.080343,0.000796,0.259640,0.000000,0.000000,0.000000,1.000000,0.000001);
			f(5,6,17,0.758685,0.334496,0.757889,0.594136,0.433072,0.414839,-0.000000,-1.000000,-0.000001);
			f(6,16,17,0.757889,0.594136,0.432276,0.674479,0.433072,0.414839,-0.000000,-1.000000,-0.000001);
			f(1,5,19,0.969479,0.325364,0.918300,0.325521,0.968481,0.000000,0.970142,-0.000002,-0.242536);
			f(5,17,19,0.918300,0.325521,0.917301,0.000157,0.968481,0.000000,0.970142,-0.000002,-0.242536);
			f(6,2,16,0.865550,0.617047,0.916729,0.617204,0.864552,0.942411,-0.970142,0.000001,0.242536);
			f(2,18,16,0.916729,0.617204,0.915731,0.942568,0.864552,0.942411,-0.970142,0.000001,0.242536);
			f(14,15,13,0.812598,0.674636,0.863778,0.674479,0.813372,0.926793,-0.000000,0.000002,-1.000000);
			f(15,12,13,0.863778,0.674479,0.864552,0.926636,0.813372,0.926793,0.000000,0.000004,-1.000000);
			f(5,1,14,0.433273,0.674479,0.484453,0.674636,0.432276,0.999843,-0.970143,0.000004,-0.242535);
			f(1,15,14,0.484453,0.674636,0.483456,1.000000,0.432276,0.999843,-0.970143,0.000004,-0.242535);
			f(1,10,15,0.326410,0.339983,0.327183,0.592140,0.001296,0.422322,0.000000,1.000000,0.000003);
			f(10,12,15,0.327183,0.592140,0.002069,0.674479,0.001296,0.422322,0.000000,1.000000,0.000003);
			f(10,8,13,0.969229,0.837318,0.918049,0.837475,0.917052,0.512111,0.970143,-0.000004,0.242535);
			f(10,13,12,0.969229,0.837318,0.917052,0.512111,0.968232,0.511954,0.970143,-0.000003,0.242535);
			f(8,5,14,0.759459,0.082339,0.758685,0.334496,0.433571,0.252157,-0.000000,-1.000000,-0.000003);
			f(8,14,13,0.759459,0.082339,0.433571,0.252157,0.434345,0.000000,-0.000000,-1.000000,-0.000003);
			f(11,9,10,0.969551,0.942411,0.918371,0.942568,0.969229,0.837318,1.000000,0.000002,-0.000000);
			f(9,8,10,0.918371,0.942568,0.918049,0.837475,0.969229,0.837318,1.000000,-0.000003,-0.000003);
			f(1,0,11,0.326410,0.339983,0.431502,0.339661,0.432276,0.591818,0.000000,1.000000,-0.000000);
			f(1,11,10,0.326410,0.339983,0.432276,0.591818,0.327183,0.592140,0.000000,1.000000,-0.000000);
			f(4,5,8,0.863778,0.334818,0.758685,0.334496,0.759459,0.082339,-0.000000,-1.000000,0.000000);
			f(4,8,9,0.863778,0.334818,0.759459,0.082339,0.864552,0.082661,-0.000000,-1.000000,0.000000);
			f(0,4,11,0.916528,0.252314,0.865348,0.252157,0.917301,0.000157,0.000000,-0.000002,1.000000);
			f(4,9,11,0.865348,0.252157,0.866122,0.000000,0.917301,0.000157,0.000000,-0.000002,1.000000);
			f(4,0,7,0.865348,0.252157,0.916528,0.252314,0.864552,0.511797,0.000000,-0.000002,1.000000);
			f(0,3,7,0.916528,0.252314,0.915731,0.511954,0.864552,0.511797,0.000000,-0.000002,1.000000);
			f(2,6,7,0.916729,0.617204,0.865550,0.617047,0.865872,0.511954,-1.000000,0.000001,0.000001);
			f(2,7,3,0.916729,0.617204,0.865872,0.511954,0.917052,0.512111,-1.000000,0.000002,0.000002);
			f(4,7,5,0.863778,0.334818,0.862982,0.594459,0.758685,0.334496,0.000000,-1.000000,0.000000);
			f(7,6,5,0.862982,0.594459,0.757889,0.594136,0.758685,0.334496,0.000000,-1.000000,0.000000);
			f(0,1,3,0.431502,0.339661,0.326410,0.339983,0.430706,0.080021,-0.000000,1.000000,-0.000000);
			f(1,2,3,0.326410,0.339983,0.325613,0.080343,0.430706,0.080021,-0.000000,1.000000,-0.000000);

			this.x = 0.000000;
			this.y = 0.000000;
			this.z = 0.000000;

			this.rotationX = 0.000000;
			this.rotationY = 0.000000;
			this.rotationZ = 0.000000;

			this.scaleX = 1.000000;

			this.scaleY = 1.000000;

			this.scaleZ = 1.000000;
		}
		public function v(x:Number, y:Number, z:Number):void {
			ve.push(new Vertex(x, y, z));
		}

		public function f(vertexIndex1:int, vertexIndex2:int, vertexIndex3:int, uv00:Number, uv01:Number, uv10:Number, uv11:Number, uv20:Number, uv21:Number, normalx:Number, normaly:Number, normalz:Number):void {
			var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve[vertexIndex3], null, new UV(uv00, uv01), new UV(uv10, uv11), new UV(uv20, uv21) );
			addFace(face);
		}

		public function f2(vertexIndex1:int, vertexIndex2:int, vertexIndex3:int):void {
			addFace( new Face(ve[vertexIndex1], ve[vertexIndex2], ve[vertexIndex3]) );
		}

	}
}